home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "List/X+ UserControl Sample"
- ClientHeight = 3870
- ClientLeft = 2490
- ClientTop = 1830
- ClientWidth = 4515
- LinkTopic = "Form1"
- ScaleHeight = 3870
- ScaleWidth = 4515
- Begin VB.CheckBox Check1
- Caption = "Sort Numerically"
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 3360
- Value = 1 'Checked
- Width = 2175
- End
- Begin Project1.MListSrt MListSrt1
- Height = 3015
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 2175
- _ExtentX = 3836
- _ExtentY = 5318
- End
- Begin VB.Label Label1
- Caption = "This sample shows how easy it is to extend List/X+'s functionality by using it in a VB5 control."
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 3015
- Left = 2520
- TabIndex = 2
- Top = 240
- Width = 1815
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Check1_Click()
- If (Check1.Value <> 1) Then
- MListSrt1.NumericSort = False
- Else
- MListSrt1.NumericSort = True
- End If
- End Sub
- Private Sub Form_Load()
- Dim list As MList
- Dim i As Integer
- Me.Left = (Screen.Width - Me.ScaleWidth) / 2
- Me.Top = (Screen.Height - Me.ScaleHeight) * 2 / 5
- Set list = MListSrt1.ListCtl
- For i = 0 To 99
- list.AddItem i
- Next
- MListSrt1.NumericSort = True
- list.SortOrder = "a"
- list.Sorted = True
- End Sub
-